package com.dkd.manage.domain;

import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 合作商订单汇总对象 order_collect
 * 
 * @author 付赟铖
 * @date 2025-09-30
 */
public class OrderCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 合作商Id */
    private Long partnerId;

    /** 合作商 */
    @Excel(name = "合作商")
    private String partnerName;

    /** 收入(元) */
    @Excel(name = "收入(元)")
    private Long orderTotalMoney;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 分成金额 */
    @Excel(name = "分成金额")
    private Long totalBill;

    /** 点位id */
    private Long nodeId;

    /** 点位 */
    private String nodeName;

    /** 笔数 */
    @Excel(name = "笔数")
    private Long orderCount;

    /** 分成比例 */
    @Excel(name = "分成比例")
    private Long ratio;

    /** 区域名称 */
    private String regionName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPartnerId(Long partnerId) 
    {
        this.partnerId = partnerId;
    }

    public Long getPartnerId() 
    {
        return partnerId;
    }
    public void setPartnerName(String partnerName) 
    {
        this.partnerName = partnerName;
    }

    public String getPartnerName() 
    {
        return partnerName;
    }
    public void setOrderTotalMoney(Long orderTotalMoney) 
    {
        this.orderTotalMoney = orderTotalMoney;
    }

    public Long getOrderTotalMoney() 
    {
        return orderTotalMoney;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setTotalBill(Long totalBill) 
    {
        this.totalBill = totalBill;
    }

    public Long getTotalBill() 
    {
        return totalBill;
    }
    public void setNodeId(Long nodeId) 
    {
        this.nodeId = nodeId;
    }

    public Long getNodeId() 
    {
        return nodeId;
    }
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    public void setOrderCount(Long orderCount) 
    {
        this.orderCount = orderCount;
    }

    public Long getOrderCount() 
    {
        return orderCount;
    }
    public void setRatio(Long ratio) 
    {
        this.ratio = ratio;
    }

    public Long getRatio() 
    {
        return ratio;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partnerId", getPartnerId())
            .append("partnerName", getPartnerName())
            .append("orderTotalMoney", getOrderTotalMoney())
            .append("orderDate", getOrderDate())
            .append("totalBill", getTotalBill())
            .append("nodeId", getNodeId())
            .append("nodeName", getNodeName())
            .append("orderCount", getOrderCount())
            .append("ratio", getRatio())
            .append("regionName", getRegionName())
            .toString();
    }
}
